package com.google.code.jbauble.test.controller;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.google.code.jbauble.mvc.Controller;
import com.google.code.jbauble.mvc.Result;

public class CodeController extends Controller {
	public Result index() {
		return render();
	}
	
	public Result get(String name, Date date) {
		Map map = new HashMap();
		map.put("name", name);
		map.put("date", date);
		return render(map);
	}
	
	public Result post(String name, Date date) {
		Map map = new HashMap();
		map.put("name", name);
		map.put("date", date);
		return render(map);
	}
}
